package com.wiz.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wiz.mapper.AddressMapper;
import com.wiz.service.AddressService;
import com.wiz.to.AreasTO;
import com.wiz.to.CitiesTO;
import com.wiz.to.ProvincesTO;
@Service("addressService")
public class AddressServiceImpl implements AddressService {

	
	@Resource
	private AddressMapper addressMapper;
	
	
	@Override
	public List<ProvincesTO> listProvinces() {
		return addressMapper.listProvinces();
	}

	@Override
	public List<CitiesTO> listCity(String provinceId) {
		return addressMapper.listCity(provinceId);
	}

	@Override
	public List<AreasTO> listAreas(String cityId) {
		return addressMapper.listAreas(cityId);
	}

}
